/**
 * Created by shitao on 15/11/2.
 */
(function () {
    angular.module('my-tabs.controllers')
        .controller('friendDialogCtrl', friendDialogCtrl);
    friendDialogCtrl.$inject = ['$scope', 'friendService', '$stateParams'];

    function friendDialogCtrl($scope, friendService, $stateParams) {
        console.log('friendDialogCtrl');
        var vm = this,
            friendId = $stateParams.friendId;
        vm.friend = friendService.get(friendId);
        vm.dialog = friendService.dialog(friendId);
    }
})();
